package com.drops.utils;

import cn.hutool.http.HttpResponse;

/**
 * @ClassName: ResponseUtil
 * @Description: TODO
 * @Author: Summer
 * @Date: 2021/7/28 10:59
 * @Version: v1.0.0
 * @Description:
 **/
public class ResponseUtil {

    HTTPUtils httpUtils = new HTTPUtils();

    public ResponseUtil(int Timeout){
        httpUtils.setTimeout(Timeout);
    }

    public ResponseUtil(){
    }

    public static int getStats(HttpResponse response){
        return response.getStatus();
    }

    public static String getBoby(HttpResponse response){
        return response.body();
    }






}
